/*package com.yiwei.app.modules.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yiwei.app.common.utils.Constants;
import com.yiwei.app.common.utils.ResultEntity;
import com.yiwei.app.modules.entity.Car;
import com.yiwei.app.modules.service.CarService;

@Controller
@RequestMapping(value="/carController")
public class CarController {
	ResultEntity resultEntity=new ResultEntity();
	@Autowired
	private CarService carService;
	*//**
	 * 增加l条车辆信息
	 * @param car
	 * @return
	 *//*
	@ResponseBody
	@RequestMapping(value="/insertcar",method=RequestMethod.POST)
	public ResultEntity insertCar(Car car){
		int count = carService.insertCar(car);
		if(count!=0){
			resultEntity.setCode(Constants.SUCCESS_CODE);
			resultEntity.setMessage(Constants.SUCCESS_MESS);
			return resultEntity;
		}else{
			resultEntity.setCode(Constants.ERROR_CODE);
			resultEntity.setMessage(Constants.ERROR_MESS);
			return resultEntity;
		}
	}
	
	@ResponseBody
	@RequestMapping(value="/insertcar",method=RequestMethod.POST)
	public ResultEntity insert(Car car){
		int count = carService.insertCar(car);
		if(count!=0){
			resultEntity.setCode(Constants.SUCCESS_CODE);
			resultEntity.setMessage(Constants.SUCCESS_MESS);
			return resultEntity;
		}else{
			resultEntity.setCode(Constants.ERROR_CODE);
			resultEntity.setMessage(Constants.ERROR_MESS);
			return resultEntity;
		}
	}
}
*/